module.exports = {
  register: async function(name, pwd) {
    let data 
    if(name == 'ikcamp' && pwd == '123456'){
      data = {
        status: 0,
        data: {
          title: "个人中心",
          content: "欢迎进入个人中心"
        }
      }
    }else{
      data = {
        status: -1,
        data: {
          title: '登录失败',
          content: "请输入正确的账号信息"
        }
      }
    }
    return data
  },
  index: async function() {
    let data = {
      status: 0,
      data: {
        title: "Ai选股--dzq",
        list: [{title:'长电基本面日趋清晰和乐观了'},{title:'2019年1-2月份全国房地产开发和销售情况，商品房销售额1.3万亿元，增长2.8%'}]
      }
    }
    return data
  },
  stockregister: async function(name, pwd) {
    let data 
    if(name == 'ikcamp' && pwd == '123456'){
      data = {
        status: 0,
        data: {
          // title: "个人中心",
          content: "欢迎进入个人中心",
          title: "Ai选股--dzq",
          username: '强哥',
          list: [{title:'长电基本面日趋清晰和乐观了'},{title:'2019年1-2月份全国房地产开发和销售情况，商品房销售额1.3万亿元，增长2.8%'}]
        }
      }
    }else{
      data = {
        status: -1,
        data: {
          title: '登录失败',
          content: "请输入正确的账号信息"
        }
      }
    }
    return data
  }
}